<?php
namespace Menory\Standard;

class Error {
    
    protected $message = "ok";
    protected $code = 0;
    
    /**
     * Error constructor.
     *
     * @param $message
     * @param $code
     */
    public function __construct($message, $code) {
        
        $this->message = $message;
        $this->code    = $code;

    }
    
    /**
     * @return string
     */
    public function getMessage() {

        return $this->message;

    }

    /**
     * @return int
     */
    public function getCode() {

        return $this->code;

    }
    
}